/*@preserve ***Version 2.10.0*** */ /*@license * Copyright 2002 - 2018 Qualtrics, LLC. * All rights reserved. * * Notice: All code, text, concepts, and other information herein (collectively, the * "Materials") are the sole property of Qualtrics, LLC, except to the extent * otherwise indicated. The Materials are proprietary to Qualtrics and are protected * under all applicable laws, including copyright, patent (as applicable), trade * secret, and contract law. Disclosure or reproduction of any Materials is strictly * prohibited without the express prior written consent of an authorized signatory * of Qualtrics. For disclosure requests, please contact notice@qualtrics.com. */ try { (window["WAFQualtricsWebpackJsonP-cloud-2.10.0"]=window["WAFQualtricsWebpackJsonP-cloud-2.10.0"]||[]).push([[11],{10:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={SIDE_BY_SIDE:"embedded-feedback-layout-side-by-side",STACKED:"embedded-feedback-layout-stacked"},o={REGULAR:"embedded-feedback-text-weight-regular",BOLD:"embedded-feedback-text-weight-bold",ITALIC:"embedded-feedback-text-weight-italic"}},12:function(e,t,n){"use strict";var r=n(3),o=n(4),i=n(23),a=n(10),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&!--f&&(d(),d=null)};var m=y,p=n(7),v=n(8);n.d(t,"a",(function(){return _}));var C=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},_=Object(o.forwardRef)((function(e,t){var n=e.children,a=e.questionText,u=e.questionTextColor,d=e.questionTextWeight,l=e.questionTextLayout,b=e.questionTextId,s=Object(p.b)().legacyCreativeVal,f=Object(v.b)().isPreview,h=Object(o.useRef)(null),y=f?function(){return[h,!1]}:i.useInView,_=C(y({unobserveOnEnter:!0,threshold:.25}),2),x=_[0],S=_[1];return Object(o.useEffect)((function(){S&&s.impressOnce()}),[S]),Object(o.useLayoutEffect)((function(){return m.use(),function(){m.unuse()}}),[]),Object(r.h)("div",{ref:x,style:{marginTop:"10px",whiteSpace:"normal"},role:"group","aria-label":a,className:"QSI__EmbeddedFeedbackContainer"},Object(r.h)("fieldset",null,Object(r.h)(c,{ref:t,questionText:a,questionTextColor:u,questionTextWeight:d,questionTextLayout:l,questionTextId:b}),n))}));_.displayName="QuestionContainer"},16:function(e,t,n){"use strict";var r=n(18),o=n.n(r)()((function(e){return e[1]}));o.push([e.i,".QSI__EmbeddedFeedbackContainer fieldset, .QSI__EmbeddedFeedbackContainer dl, .QSI__EmbeddedFeedbackContainer dt, .QSI__EmbeddedFeedbackContainer dd, .QSI__EmbeddedFeedbackContainer ul, .QSI__EmbeddedFeedbackContainer ol, .QSI__EmbeddedFeedbackContainer li, .QSI__EmbeddedFeedbackContainer h1, .QSI__EmbeddedFeedbackContainer h2, .QSI__EmbeddedFeedbackContainer h3, .QSI__EmbeddedFeedbackContainer h4, .QSI__EmbeddedFeedbackContainer h5, .QSI__EmbeddedFeedbackContainer h6, .QSI__EmbeddedFeedbackContainer span, .QSI__EmbeddedFeedbackContainer pre, .QSI__EmbeddedFeedbackContainer form, .QSI__EmbeddedFeedbackContainer p, .QSI__EmbeddedFeedbackContainer blockquote, .QSI__EmbeddedFeedbackContainer tr , .QSI__EmbeddedFeedbackContainer th, .QSI__EmbeddedFeedbackContainer td{\n margin: 0;\n padding: 0;\n background-color: transparent;\n border: 0;\n line-height: normal;\n vertical-align: baseline;\n box-shadow: none;\n display: inline-block;\n }\n \n .QSI__EmbeddedFeedbackContainer img {\n height: auto;\n width: auto;\n margin: 0;\n padding: 0;\n }\n \n .QSI__EmbeddedFeedbackContainer .scrollable {\n -webkit-overflow-scrolling: touch;\n }\n\n .QSI__EmbeddedFeedbackContainer textarea {\n border: 1px solid #D9D9D9;\n background-color: white;\n border-radius: 4px;\n }\n\n .QSI__EmbeddedFeedbackContainer textarea:focus {\n outline: none !important;\n border: 1px solid #89919A;\n background-color: white;\n border-radius: 4px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n ",""]),t.a=o},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function a(e,t,n,a){var u=i(function(e){var t=i(Object(r.useState)(!1),2),n=t[0],o=t[1],a=Object(r.useCallback)((function(){o(!0)}),[e]),u=Object(r.useCallback)((function(){o(!1)}),[e]),c=Object(r.useCallback)((function(){o(!0)}),[e]),d=Object(r.useCallback)((function(){o(!1)}),[e]);return[n,{onMouseEnter:a,onMouseLeave:u,onFocus:c,onBlur:d}]}(e),2),c=u[0],d=u[1],l=i(function(e){var t=i(Object(r.useState)(!1),2),n=t[0],o=t[1],a=Object(r.useCallback)((function(){o(!0)}),[e]),u=Object(r.useCallback)((function(){o(!1)}),[e]);return[n,{onMouseDown:a,onMouseUp:u}]}(e),2),b=l[0],s=l[1];return[function(e,t,n,r,o){var i=n;e?i=r:t&&(i=o);return i}(b,c,t,n,a),o(o({},d),s)]}},21:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4);function o(e,t){Object(r.useEffect)((function(){t.forEach((function(t){e(t.NextAction)}))}),[t])}},24:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return l}));var r=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=.85,i=.7,a=.15,u=.3;function c(e){var t=r(e.match(/^\s*rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)\s*$/),5),n=(t[0],t[1]),o=t[2],i=t[3],a=t[4];return{r:Number(n),g:Number(o),b:Number(i),a:Number(a)}}function d(e,t){var n=c(e);return"rgba("+n.r+","+n.g+","+n.b+","+(n.a*t).toString()+")"}function l(e,t){var n=c(e),r=n.r,o=n.g,i=n.b,a=n.a;return"rgba("+Math.floor(r*t).toString()+","+Math.floor(o*t).toString()+","+Math.floor(i*t).toString()+","+a+")"}},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(3),o=n(20),i=n(24),a=n(5),u=n(9),c=n(19),d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};var b=function(e){var t=e.style,n=e.identifier,b=e.buttonText,s=e.buttonFillColor,f=e.buttonTextColor,h=e.buttonBorderColor,y=e.onClick,m=e.shouldApplyFocus,p=Object(u.a)(m),v=function(e,t,n,r){var o=d({font:"inherit",padding:"0.4em 1.4em 0.4em 1.4em",minWidth:"3em",lineHeight:"1em",borderRadius:"4px",borderWidth:"1px",borderStyle:"solid",background:e,color:t,borderColor:n,cursor:"pointer"},r),u=function(r,o){return{background:"rgba(255, 255, 255, 1)"===e?Object(i.f)(n,o):Object(i.e)(e,r),color:Object(i.e)(t,r),borderColor:Object(i.e)(n,r)}},c=Object(a.h)((function(){return u(i.a,i.c)}),[e,t,n]),l=d(d({},o),c),b=Object(a.h)((function(){return u(i.b,i.d)}),[e,t,n]);return{buttonDefaultStyles:o,buttonPressedStyles:d(d({},o),b),buttonHoverStyles:l}}(s,f,h,t||{}),C=v.buttonDefaultStyles,_=v.buttonPressedStyles,x=v.buttonHoverStyles,S=l(Object(o.a)(n,C,_,x),2),g=S[0],k=S[1];return Object(r.h)("button",d({className:"QSI__EmbeddedFeedbackContainer_TextButton",ref:p,style:d({},g),onClick:y,onKeyDown:function(e){Object(c.e)(e,y)},title:b},k),b)}},58:function(e,t,n){"use strict";n.r(t),n.d(t,"Buttons",(function(){return d}));var r=n(3),o=n(28),i=n(12),a=n(21),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=function(e){var t=e.translations,n=e.question,d=e.recordResponseAndProceed,l=e.isFollowUp,b=e.preloadRendererForQID,s=n.Choices,f=n.Appearance,h=c(s,2),y=h[0],m=h[1],p=t?t.MainQuestionText:n.QuestionText,v=t&&t.YesResponseText?t.YesResponseText:s[0].Display,C=t&&t.NoResponseText?t.NoResponseText:s[1].Display;Object(a.a)(b,s);var _=f.Layout,x=f.QuestionTextColor,S=f.QuestionTextWeight,g=f.ButtonBorderColor,k=f.ButtonFillColor,O=f.ButtonTextColor,j={identifier:n.QID+"-yesbutton",buttonText:v,buttonFillColor:k,buttonTextColor:O,buttonBorderColor:g,onClick:function(){d(y.CId,y.PostResponse,y.NextAction)},style:{margin:"0 0.6em 0 0"},shouldApplyFocus:l},I={identifier:n.QID+"-nobutton",buttonText:C,buttonFillColor:k,buttonTextColor:O,buttonBorderColor:g,onClick:function(){d(m.CId,m.PostResponse,m.NextAction)}},E={questionText:p,questionTextLayout:_,questionTextColor:x,questionTextWeight:S};return Object(r.h)(i.a,u({},E),Object(r.h)("div",{className:"QSI__EmbeddedFeedbackContainer_ButtonsQuestion",style:{display:"inline-block",marginRight:"5px"}},Object(r.h)(o.a,u({},j)),Object(r.h)(o.a,u({},I))))}},7:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n(5),o=n(4),i=Object(o.createContext)({legacyCreativeVal:null}),a=function(){return Object(r.b)(i)},u=i.Provider},8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(5),o=n(4),i=Object(o.createContext)(null),a=function(){return Object(r.b)(i)}},9:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4);function o(e){var t=Object(r.useRef)(null);return Object(r.useEffect)((function(){e&&t.current.focus()}),[e]),t}}}]); } catch(e) { if (typeof QSI !== 'undefined' && QSI.dbg && QSI.dbg.e) { QSI.dbg.e(e); } }